evtchn: clear xen_consumer when clearing state
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 22 Jun 2015 09:36:17 +0000 (11:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jun 2015 09:36:17 +0000 (11:36 +0200)
commitb399386bcdb9d458f5647476a06fe86f5968d87e
tree6fd008771111a60a93fda786f14f84398ff1f586
parente722f1de2c82af870ba1caeb4fa9db45de53f4c7
evtchn: clear xen_consumer when clearing state

Freeing a xen event channel would clear xen_consumer before clearing
the channel state, leaving a window where the channel is in a funny
state (still bound but no consumer).

Move the clear of xen_consumer into free_evtchn() where the state is
also cleared.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Ditch the pointless evtchn_close() wrapper around __evtchn_close()
(renaming the latter) as well as some bogus casts of function results
to void.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/event_channel.c